← Back to issue list

no uid/gid mappings when building on core22 with multipass

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1995293
Type
issue
State
open
Author
~andreitoterman
Labels
craft-1596
Created
2022-10-31 15:20:09.060597+00:00
Updated
2023-01-30 17:15:19.334770+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

Snapcraft 7.2.3 When using Multipass as the build environment and core22 as the base, the project directory is mounted into /root/project without any uid/gid mappings, so it end up being owned by ubuntu:ubuntu, as opposed to root:root when using core20 as the base. # build default core20 snap with multipass as build environment snapcraft init export SNAPCRAFT_BUILD_ENVIRONMENT=multipass snapcraft # project directory mounted with proper uid/gid mappings multipass exec snapcraft-my-snap-name -- sudo ls -ld /root/project drwxr-xr-x 1 root root 4096 Oct 31 16:05 /root/project # build same snap with core22 sed -i s/core20/core22/ snap/snapcraft.yaml snapcraft # no more uid/gid mappings for mounted directory multipass exec snapcraft-my-snap-name-on-amd64-for-amd64-133985 -- sudo ls -ld /root/project drwxr-xr-x 2 ubuntu ubuntu 4096 Oct 31 15:59 /root/project

Evaluation history

No evaluation history available.